package com.culturalCenter.dataCenter.mapper.user;

import com.culturalCenter.dataCenter.entity.user.UserFootrpintCount;
import com.culturalCenter.dataCenter.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserFootrpintCountMapper extends BaseMapper<UserFootrpintCount> {

    /**
     * 通过userId查浏览记录统计
     *
     * @param userId
     *
     * @return
     */
    UserFootrpintCount findByUserId(@Param("userId") String userId);

    /**
     * 批量插入数据
     *
     * @param userLocationCountList
     */
    void insertBatch(List<UserFootrpintCount> userLocationCountList);

}
